#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np

'''
a = np.diag([1,1,1,1,1,1,1],k=1)
a = a + np.diag([1,1,1,1,1,1,1],k=-1)

a = a + np.diag([1,1,1,1,1],k=3)
a = a + np.diag([1,1,1,1,1],k=-3)

a = a + np.diag([1,1,1],k=5)
a = a + np.diag([1,1,1],k=-5)

a = a + np.diag([1],k=7)
a = a + np.diag([1],k=-7)
'''

a = np.ones((8,8))
for i in range(0,8,1):
    for j in range(0,8,1):
        if (i+j+2)%2==0:
            a[i,j] = 0

print("国际象棋棋盘样式\n",a)


z = np.ones((8,8))

z[0:-1:2,1::2] = 0

z[1::2,:-1:2] = 0